package com.wash.shoes.common.enums;


public enum FulFillEnum {

    /* 已分配（通用) */
    ALLOCATED("ALLOCATED", 40001, "已分配(通用)"),

    /* 已取件（洗衣）这个不需要 */
    PICKED_UP("PICKED_UP", 40101, "已取件(洗衣)"),

    /* 已到达（通用） */
    ARRIVED("ARRIVED", 40002, "已到达(通用)"),

    /* 清洗中(洗衣) */
    CLEANING("CLEANING", 41101, "清洗中(洗衣)"),

    /* 返回中(洗衣) */
    RETURNING("RETURNING", 41102, "返回中(洗衣)"),

    /* 履约完成(通用) */
    COMPLETION("COMPLETION", 41001, "履约完成(通用)"),
    ;

    FulFillEnum(String code, Integer status, String desc) {
        this.code = code;
        this.status = status;
        this.desc = desc;
    }

    /**
     * 场景编码
     */
    private String code;

    /**
     * 场景描述
     */
    private Integer status;

    /**
     * 场景描述
     */
    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static FulFillEnum getByStatus(Integer status) {
        for (FulFillEnum fulFillEnum : FulFillEnum.values()) {
            if (fulFillEnum.getStatus().equals(status)) {
                return fulFillEnum;
            }
        }
        return null;
    }
}
